package com.example.community.mapper;

import com.example.community.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    User selectById(int id);

    User selectByName(String username);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateStatus(@Param("userId") int userId, @Param("status") int status);

    int updateHeader(@Param("userId")int userId, @Param("headerUrl") String headerUrl);

    int updatePassword(@Param("userId") int userId, @Param("password") String password, @Param("salt") String salt);
}

